package net.jjjshop.common.service.lbt;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import net.jjjshop.common.entity.lbt.JybTradeOrderEntity;
import net.jjjshop.common.entity.lbt.TradeOrderEntityRequest;

import java.util.List;

/**
 * 交易订单表 业务接口
 */
public interface JybTradeOrderService extends IService<JybTradeOrderEntity> {

            /**
            * JybTradeOrder 列表查询
        * @param
        * @return
        */
    IPage<JybTradeOrderEntity> getList(Integer uid, Integer tType, Integer status, Integer classType, Integer page, Integer limit);

    /**
     * 根据订单号查询订单信息
     * @param orderNo
     * @return
     */
    JybTradeOrderEntity queryOrderInfo(String orderNo);

    /**
     * 查询需要用户处理订单
     * @return
     */
    List<JybTradeOrderEntity> userHandleOrder();

    IPage<JybTradeOrderEntity> selectOrder(Integer uid, Integer tType, Integer status, Integer classType, Integer page, Integer limit);

    Boolean cancelOrder(TradeOrderEntityRequest request);
}

